export const ProblemDifficultyEnum = {
    EASY: {
        code: "0",
        text: "简单"
    },
    MEDIUM: {
        code: "1",
        text: "中等"
    },
    HARD: {
        code: "2",
        text: "困难"
    }
}

export const ProblemSubmitStatusEnum = {
    PENDING: {
        code: "PENDING",
        text: "待判题",
        color: "#8c8c8c"
    },
    JUDGING: {
        code: "JUDGING",
        text: "判题中",
        color: "#1890ff"
    },
    SUCCESS: {
        code: "SUCCESS",
        text: "判题成功",
        color: "#52c41a"
    },
    ERROR: {
        code: "ERROR",
        text: "判题失败",
        color: "#f5222d"
    },
    ACCEPTED: {
        code: "ACCEPTED",
        text: "通过",
        color: "#52c41a"
    },
    WRONG_ANSWER: {
        code: "WRONG_ANSWER",
        text: "答案错误",
        color: "#f5222d"
    },
    COMPILE_ERROR: {
        code: "COMPILE_ERROR",
        text: "编译错误",
        color: "#fa8c16"
    },
    MEMORY_LIMIT_EXCEEDED: {
        code: "MEMORY_LIMIT_EXCEEDED",
        text: "内存溢出",
        color: "#eb2f96"
    },
    TIME_LIMIT_EXCEEDED: {
        code: "TIME_LIMIT_EXCEEDED",
        text: "运行超时",
        color: "#722ed1"
    },
    PRESENTATION_ERROR: {
        code: "PRESENTATION_ERROR",
        text: "格式错误",
        color: "#13c2c2"
    },
    OUTPUT_LIMIT_EXCEEDED: {
        code: "OUTPUT_LIMIT_EXCEEDED",
        text: "输出溢出",
        color: "#fadb14"
    },
    WAITING: {
        code: "WAITING",
        text: "等待中",
        color: "#1890ff"
    },
    DANGEROUS_OPERATION: {
        code: "DANGEROUS_OPERATION",
        text: "危险操作",
        color: "#000000"
    },
    RUNTIME_ERROR: {
        code: "RUNTIME_ERROR",
        text: "运行时错误",
        color: "#fa541c"
    },
    SYSTEM_ERROR: {
        code: "SYSTEM_ERROR",
        text: "系统错误",
        color: "#d4380d"
    }
};


export const ProblemShowModeEnum = {
    NORMAL: "0",
    PK: "1"
}
